package cn.wolfcode.luowowo.acticle.mapper;

import cn.wolfcode.luowowo.acticle.domain.Travel;
import cn.wolfcode.luowowo.acticle.query.TravelQueryObject;
import cn.wolfcode.luowowo.acticle.vo.MyHomeStatisVO;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    List<Travel> selectForList(TravelQueryObject qo);

    void updateState(@Param("id") Long id, @Param("state") Integer state);

    List<Travel> selectTravelTop3ByDestId(Long destId);

    List<Travel> selectByNewTop6(Long uid);

    List<Travel> selectCountNum(Long id);

    List<Travel> queryForPage(@Param("qo") QueryObject qo, @Param("uid") Long uid);
}